package com.zh.service;


import javax.mail.MessagingException;

/**
 * 邮件服务
 */
public interface EmailService {

    /**
     * 发送简单的邮件
     * @param
     * @param code
     * @return
     */
    boolean sendSimpleEmail(String to,String code);

    /**
     * 发送html
     * @param to
     * @param code
     * @return
     */
    boolean sendHtmlEmail(String to,String code) throws MessagingException;
}
